package com.spzx.order.domain.vo;

import com.spzx.common.core.utils.uuid.UUID;
import com.spzx.order.domain.OrderItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Schema(description = "结算页数据模型")
@Data
public class OrderTradeVO {
    @Schema(description = "总金额")
    private BigDecimal totalAmount;
    @Schema(description = "结算购物项列表")
    private List<OrderItem> orderItemList;
    @Schema(description = "结算页编号：保证幂等性")
    private String tradeNo = UUID.randomUUID().toString().replace("-","");
}